import { SkuModel, SpuModel } from "./PropertyModel"

export interface SeckillActivityModel {
  Id?: number
  SpuId?: number
  Name?: string
  Status?: number
  Remark?: string
  StartTime?: Date
  EndTime?: Date
  Sort?: number
  ConfigIds?: string
  OrderCount?: number
  UserCount?: number
  TotalPrice?: number
  TotalLimitCount?: number
  SingleLimitCount?: number
  Stock?: number
  TotalStock?: number
  SeckillPrice?: number
  Products?: SeckillProductModel[]
}

export interface SeckillProductModel {
  SkuId: number
  SpuId: number
  SeckillPrice: number
  Stock: number
}


// 扩展 Sku 配置
export type SkuExtension = SkuModel & {
  ProductConfig: SeckillProductModel
}

export interface SpuExtension extends SpuModel {
  Skus: SkuExtension[] // 重写类型
}
